nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
vnoremap <silent> <leader> :<c-u>WhichKeyVisual '<Space>'<CR>


let g:which_key_map = {}

let g:which_key_map.0 = 'which_key_ignore'
let g:which_key_map.1 = 'which_key_ignore'
let g:which_key_map.2 = 'which_key_ignore'
let g:which_key_map.3 = 'which_key_ignore'
let g:which_key_map.4 = 'which_key_ignore'
let g:which_key_map.5 = 'which_key_ignore'
let g:which_key_map.6 = 'which_key_ignore'
let g:which_key_map.7 = 'which_key_ignore'
let g:which_key_map.8 = 'which_key_ignore'
let g:which_key_map.9 = 'which_key_ignore'

let g:which_key_map.e = 'Nerd Tree'
let g:which_key_map.b = {
			\'name':'+buffer',
			\'n':'next buffer',
			\'p':'previous buffer',
			\'d':'delete buffer',
			\'l':'list buffer'}

let g:which_key_map.c = {
			\'name':'+code',
			\'r':'rename'}

let g:which_key_map.h = {
			\'name':'+wip',
			\'a':'remove error marks'}

let g:which_key_map.r = {
			\'name':'+run',
			\'r':'rust run',
			\'t':'rust test'}
call which_key#register('<Space>', "g:which_key_map")
